home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '93 / Papers '93 / Macintosh as Internet Server ƒ / inetd / InetD Setup / IconFamily.h next >
Encoding:
C/C++ Source or Header  |  1993-01-22  |  4.8 KB  |  92 lines  |  [TEXT/MPS ]

  1. /* C */
  2. #define noMaskFound    -1000
  3.  
  4. /* C Typedefs */
  5.  
  6. typedef pascal OSErr   (*IconAction)(ResType theType, Handle *theIcon, void *yourDataPtr);
  7. typedef pascal Handle  (*IconGetter)(ResType theType, void *yourDataPtr);
  8. typedef unsigned long  IconSelectorValue;
  9. typedef short          IconAlignmentType;
  10. typedef short          IconTransformType;
  11.  
  12. /* C Glue */
  13.  
  14. pascal OSErr PlotIconID(const Rect *theRect, IconAlignmentType align,
  15.                         IconTransformType transform, short theResID)
  16.        =  {0x303C, 0x0500, 0xABC9};
  17. pascal OSErr NewIconSuite(Handle *theIconSuite)
  18.        =  {0x303C, 0x0207, 0xABC9};
  19. pascal OSErr AddIconToSuite(Handle theIconData, Handle theSuite, ResType theType)
  20.        =  {0x303C, 0x0608, 0xABC9};
  21. pascal OSErr GetIconFromSuite(Handle *theIconData, Handle theSuite, ResType theType)
  22.        =  {0x303C, 0x0609, 0xABC9};
  23. pascal OSErr ForEachIconDo(Handle theSuite, IconSelectorValue selector, IconAction action,
  24.                            void *yourDataPtr)
  25.        =  {0x303C, 0x080A, 0xABC9};
  26. pascal OSErr GetIconSuite(Handle *theIconSuite, short theResID, IconSelectorValue selector)
  27.        =  {0x303C, 0x0501, 0xABC9};
  28. pascal OSErr DisposeIconSuite(Handle theIconSuite, Boolean disposeData)
  29.        =  {0x303C, 0x0302, 0xABC9};
  30. pascal OSErr PlotIconSuite(const Rect *theRect, IconAlignmentType align,
  31.                            IconTransformType transform, Handle theIconSuite)
  32.        =  {0x303C, 0x0603, 0xABC9};
  33. pascal OSErr MakeIconCache(Handle *theHandle, IconGetter makeIcon, void *yourDataPtr)
  34.        =  {0x303C, 0x0604, 0xABC9};
  35. pascal OSErr LoadIconCache(const Rect *theRect, IconAlignmentType align,
  36.                            IconTransformType transform, Handle theIconCache)
  37.        =  {0x303C, 0x0606, 0xABC9};
  38. pascal OSErr PlotIconMethod(const Rect *theRect, IconAlignmentType align,
  39.                             IconTransformType transform, IconGetter theMethod,
  40.                             void *yourDataPtr)
  41.        =  {0x303C, 0x0805, 0xABC9};
  42. pascal OSErr GetLabel(short labelNumber, RGBColor *labelColor, Str255 labelString)
  43.        =  {0x303c, 0x050B, 0xABC9};
  44. pascal Boolean PtInIconID(Point testPt, Rect *iconRect, IconAlignmentType alignment,
  45.                           short iconID)
  46.        =  {0x303c, 0x060D, 0xABC9};
  47. pascal Boolean PtInIconSuite(Point testPt, Rect *iconRect, IconAlignmentType alignment,
  48.                              Handle theIconSuite)
  49.        =  {0x303c, 0x070E, 0xABC9};
  50. pascal Boolean PtInIconMethod(Point testPt, Rect *iconRect, IconAlignmentType alignment,
  51.                               IconGetter theMethod, void *yourDataPtr)
  52.        =  {0x303c, 0x090F, 0xABC9};
  53. pascal Boolean RectInIconID(Rect *testRect, Rect *iconRect, IconAlignmentType alignment,
  54.                             short iconID)
  55.        =  {0x303c, 0x0610, 0xABC9};
  56. pascal Boolean RectInIconSuite(Rect *testRect, Rect *iconRect, IconAlignmentType alignment,
  57.                                Handle theIconSuite)
  58.        =  {0x303c, 0x0711, 0xABC9};
  59. pascal Boolean RectInIconMethod(Rect *testRect, Rect *iconRect, IconAlignmentType alignment,
  60.                                 IconGetter theMethod, void *yourDataPtr)
  61.        =  {0x303c, 0x0912, 0xABC9};
  62. pascal OSErr IconIDToRgn(RgnHandle theRgn, Rect *iconRect, IconAlignmentType alignment,
  63.                          short iconID)
  64.        =  {0x303c, 0x0613, 0xABC9};
  65. pascal OSErr IconSuiteToRgn(RgnHandle theRgn, Rect *iconRect, IconAlignmentType alignment,
  66.                             Handle theIconSuite)
  67.        =  {0x303c, 0x0714, 0xABC9};
  68. pascal OSErr IconMethodToRgn(RgnHandle theRgn, Rect *iconRect, IconAlignmentType alignment,
  69.                              IconGetter theMethod, void *yourDataPtr)
  70.        =  {0x303c, 0x0915, 0xABC9};
  71. pascal OSErr SetSuiteLabel(Handle theSuite, short theLabel)
  72.        =  {0x303C, 0x0316, 0xABC9};
  73. pascal short GetSuiteLabel(Handle theSuite)
  74.        =  {0x303C, 0x0217, 0xABC9};
  75. pascal OSErr GetIconCacheData(Handle theCache, void **theData)
  76.        =  {0x303C, 0x0419, 0xABC9};
  77. pascal OSErr SetIconCacheData(Handle theCache, void *theData)
  78.        =  {0x303C, 0x041A, 0xABC9};
  79. pascal OSErr GetIconCacheProc(Handle theCache, IconGetter *theProc)
  80.        =  {0x303C, 0x041B, 0xABC9};
  81. pascal OSErr SetIconCacheProc(Handle theCache, IconGetter theProc)
  82.        =  {0x303C, 0x041C, 0xABC9};
  83. pascal OSErr PlotIconHandle(const Rect *theRect, IconAlignmentType align,
  84.                             IconTransformType transform, Handle theIcon)
  85.        =  {0x303C, 0x061D, 0xABC9};
  86. pascal OSErr PlotSICNHandle(const Rect *theRect, IconAlignmentType align,
  87.                             IconTransformType transform, Handle theSICN)
  88.        =  {0x303C, 0x061E, 0xABC9};
  89. pascal OSErr PlotCIconHandle(const Rect *theRect, IconAlignmentType align,
  90.                              IconTransformType transform, CIconHandle theCIcon)
  91.        =  {0x303C, 0x061F, 0xABC9};
  92.